package me.hl.lambda;

import java.io.Serializable;

/**
 * Created by Planck on 2016/1/11.
 */
public class Book implements Serializable {

    private static final long serialVersionUID = -7797443635917226066L;
    private Integer price;
    private String name;

    public Book(Integer price, String name) {
        this.price = price;
        this.name = name;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Book{" +
                "price=" + price +
                ", name='" + name + '\'' +
                '}';
    }
}
